﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PrjMainShow.aspx.cs" Inherits="Research.Web.PrjMainShow" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <ext:PageManager ID="PageManager1" runat="server" />
    <form id="form1" runat="server">
     <ext:Toolbar ID="Toolbar1" runat="server">
           <Items>
                <ext:Button ID="btnAdd" runat="server" Text="添加" Icon="Add">
                </ext:Button>
                <ext:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
                </ext:ToolbarSeparator>
                <ext:Button ID="btnUpdate" runat="server" Text="修改" Icon="TableEdit">
                </ext:Button>
                <ext:ToolbarSeparator ID="ToolbarSeparator2" runat="server">
                </ext:ToolbarSeparator>
                <ext:Button ID="btnDel" runat="server" Text="删除" Icon="Delete">
                </ext:Button>
           </Items>
       </ext:Toolbar>

       <ext:Panel ID="pnlSearch" runat="server" BodyPadding="5px" EnableBackgroundColor="True"
           ShowBorder="true" ShowHeader="true" Title="查询操作" EnableCollapse="True" 
        Collapsed="True" AutoWidth="true">
           <Items>
               <ext:SimpleForm ID="SimpleForm1" runat="server" BodyPadding="5px" 
                   EnableBackgroundColor="True" ShowHeader="False" Title="查询操作" 
                   Width="350px">
                   <Items>
                       <ext:DropDownList ID="ddlFilterItem" runat="server" Label="筛选项">
                       </ext:DropDownList>
                       <ext:TextBox ID="txtFilterValue" runat="server" Label="值" Text="" 
                           NextFocusControl="btnFilter">
                       </ext:TextBox>
                       <ext:Button runat="server" Text="查询" ID="btnFilter" Icon="SystemSearch" 
                           OnClick="btnFilter_Click" >
                       </ext:Button>
                  </Items>
                   
               </ext:SimpleForm>
           </Items>
       </ext:Panel> 
       
          
        <ext:Panel ID="pnlGrid" runat="server" Height="600px" AutoWidth="true" ShowBorder="false"
        Layout="VBox" BoxConfigAlign="Stretch" BoxConfigPosition="Left" BoxConfigPadding="5"
        BoxConfigChildMargin="0 0 5 0" ShowHeader="false" Title="">
        <Items> 
        <ext:Grid ID="gridPrjShow" runat="server" EnableCheckBoxSelect="false" 
            EnableRowNumber="True" Title="项目台账" Height="550px" AllowPaging="True" 
            AllowSorting="True" IsDatabasePaging="True" 
            onpageindexchange="gridPrjShow_PageIndexChange" onsort="gridPrjShow_Sort" 
            PageSize="10" DataKeyNames="RprjID" AnchorValue="100%" 
                OnRowCommand="gridPrjShow_RowCommand" 
                OnPreRowDataBound="gridPrjShow_PreRowDataBound" EnableRowClick="True" 
                OnRowClick="gridPrjShow_RowClick" >
      
            <Columns>
            <ext:BoundField Width="80px" DataField="RprjNum" HeaderText="项目编号" SortField="RprjNum" />
            <ext:BoundField Width="150px" DataField="RprjName" HeaderText="项目名称" SortField="RprjName"/>
            <ext:BoundField Width="70px" DataField="RprjLevel" HeaderText="项目级别" SortField="RprjLevel"/>
            <ext:BoundField Width="100px" DataField="SubjectName" HeaderText="专业" />
            <ext:BoundField Width="150px" DataField="DepartName" HeaderText="承担部门" />
            <ext:BoundField Width="100px" DataField="PrjNum" HeaderText="背景工程"  />
            <ext:BoundField Width="80px" DataField="UserName" HeaderText="负责人" />
            <ext:BoundField Width="100px" DataField="SumAmount" HeaderText="经费预算"  DataFormatString="{0:N}"/>
            <ext:BoundField Width="80px" DataField="DelayDays" HeaderText="延期天数" />   
          
            <ext:WindowField ColumnID="winHasFoundData" Width="60px" WindowID="windowData" HeaderText="立项资料"
                DataTextFormatString="{0}" DataIFrameUrlFields="RprjID"
                DataIFrameUrlFormatString="RprjData.aspx?RprjID={0}&Type=1" DataWindowTitleField="RprjName"
                DataWindowTitleFormatString="立项资料 - {0}" />
            <ext:WindowField ColumnID="winHasProcessData" Width="60px" WindowID="windowData" HeaderText="过程资料"
                DataTextFormatString="{0}" DataIFrameUrlFields="RprjID"
                DataIFrameUrlFormatString="RprjData.aspx?RprjID={0}&Type=2" DataWindowTitleField="RprjName"
                DataWindowTitleFormatString="过程资料 - {0}" />
            <ext:WindowField ColumnID="winHasFinishData" Width="60px" WindowID="windowData" HeaderText="结题资料"
                DataTextFormatString="{0}" DataIFrameUrlFields="RprjID"
                DataIFrameUrlFormatString="RprjData.aspx?RprjID={0}&Type=3" DataWindowTitleField="RprjName"
                DataWindowTitleFormatString="结题资料 - {0}" />
             <ext:WindowField ColumnID="winSchedule" Width="60px" WindowID="windowSchedule" HeaderText="进度管理"
                DataTextFormatString="{0}" DataIFrameUrlFields="RprjID,RprjName"
                DataIFrameUrlFormatString="ShowCharts.aspx?Title={1}&rPrjID={0}" DataWindowTitleField="RprjName"
                DataWindowTitleFormatString="进度管理 - {0}" Icon="TableEdit"/> 
                

            </Columns>
        </ext:Grid>
        </Items>
      </ext:Panel> 
    
    
    <ext:Window ID="windowData" Title="项目明细" Popup="false" 
         EnableIFrame="true" runat="server"
        Target="Top" IsModal="True" Width="350px" Height="350px" 
        CloseAction="HideRefresh"  EnableResize="True">
    </ext:Window>
    
    <ext:Window ID="windowRprjDetails" Title="项目明细" Popup="false" 
         EnableIFrame="true" runat="server"
        Target="Top" IsModal="True" Width="950px" Height="600px" 
        CloseAction="HideRefresh"  EnableResize="True">
    </ext:Window>
   
    <ext:Window ID="windowSchedule" Title="进度管理" Popup="false" EnableIFrame="true" runat="server"
        CloseAction="HidePostBack" EnableConfirmOnClose="true" IFrameUrl="about:blank"
        Target="Top" IsModal="True" Width="1000px" Height="600px">
    </ext:Window>
    </form>


</body>
</html>
